package scanner;
/**
 * Creates a Node for a Token Linked List
 * @author Justin
 *
 */
public class Token {
	private Token nextWord;
	private String word;
	/**
	 * A linked list for tokens
	 * @param theWord
	 */
	public Token(String theWord){
		word = theWord;
		nextWord = null;
	}
	/**
	 * A linked list for tokens
	 */
	public Token(){
		nextWord = null;
		
	}
	/**
	 * 
	 * @return String
	 */
	public String getWord(){
		return word;
	}
	/**
	 * 
	 * @return Token
	 */
	public Token getNext(){
		return nextWord;
	}
	/**
	 * Sets the next node
	 * @param nextLine
	 */
	public void setNext(Token nextLine){
		this.nextWord = nextLine;
	}
	/**
	 * Sets the String contained
	 * @param theWord
	 */
	public void setWord(String theWord){
		word = theWord;
	}
}
